//获取应用实例
var app = getApp();
//获得

var MyRequest = require("../../utils/MyRequest.js");
var Global = require("../../Global.js");

Page({ 
    submit:function(){
        var data = {
            action:"feedback",
            content:this.data.detail,
            mobile:this.data.phone,
            name:this.data.name
        }
         MyRequest.MyGetWithToast("FeedBack", this, this.submitSuccess, data);
    },
    bindName:function(e){
        this.setData({
            name: e.detail.value
        })
    },
    bindPhone:function(e){
        this.setData({
            phone: e.detail.value
        })
    },
    bindTextAreaBlur: function(e) {
        this.setData({
            detail: e.detail.value
        })
    },
    submitSuccess:function(result,that){
         wx.navigateBack();
    }
});